<?php 
require_once('database.php');
$link=connectDB();
$tbl_name='topic'; // Table name

if($_GET['id'] != ""){
	$userID = $_GET['id'];
	$sql = "DELETE FROM $tbl_name WHERE id='".$userID."'";
	$query  = mysql_query($sql);
}  
//header('Localhost: login_success.php');
header('Location: viewtopic.php');
exit;
?>